From: Tim Starling Date: Wed, 9 Jan 2008 00:21:16 +0000 (+0000) Subject: Revert revert of setSingleton(), unrelated to broken, accidentally committed code... X-Git-Tag: 1.31.0-rc.0~50092 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=5194b6033bf1c453170cff4cd6df137cb5f75d7f;p=lhc%2Fweb%2Fwiklou.git Revert revert of setSingleton(), unrelated to broken, accidentally committed code in FSRepo.php. --- diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index 1204031fd0..4e9a8a6dc6 100644 --- a/includes/filerepo/RepoGroup.php +++ b/includes/filerepo/RepoGroup.php @@ -31,6 +31,13 @@ class RepoGroup { self::$instance = null; } + /** + * Set the singleton instance to a given object + */ + static function setSingleton( $instance ) { + self::$instance = $instance; + } + /** * Construct a group of file repositories. * @param array $data Array of repository info arrays.